package com.chenyue.cm.user.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 实名认证
 * </p>
 *
 * @author Lbx
 * @since 2021-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "JdVerify对象", description = "实名认证")
public class JdVerify extends Model<JdVerify> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "身份证号")
    private String cardNumber;

    @ApiModelProperty(value = "证件类型 1身份照 2护照3港澳台4其他")
    private Integer certType;

    @ApiModelProperty(value = "证件照正面")
    private String certPositive;

    @ApiModelProperty(value = "证件照反面")
    private String certReverse;

    @ApiModelProperty(value = "营业执照正面")
    private String busPositive;

    @ApiModelProperty(value = "营业执照反面")
    private String busReverse;

    @ApiModelProperty(value = "营业执照编号")
    private String busNumber;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "籍贯")
    private String nativePlace;

    @ApiModelProperty(value = "审核状态 0待审核1通过2拒绝")
    private Integer state;

    @ApiModelProperty(value = "审核备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ct;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
